import Vuex from 'vuex'
import Vue from 'vue'

import admin from './admin'
import teacher from './teacher'
import student from './student'
import achievement from './achievement'
import task from './task'

import globalData from '@/utils/GlobalData'
import createLogger from 'vuex/dist/logger'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    achievement,
    student,
    admin,
    teacher,
    task
  },
  plugins: globalData.isDevelopment ? [createLogger()] : []
})
